package com.hualan.mapper;

import com.github.pagehelper.Page;
import com.hualan.pojo.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 丁海林
* @description 针对表【sys_user】的数据库操作Mapper
* @createDate 2025-04-25 08:29:10
* @Entity com.hualan.pojo.SysUser
*/
@Mapper
public interface SysUserMapper {


    Page<SysUser> selectUserList(@Param("sysUser") SysUser sysUser, int pageNum, int pageSize);
    int insertUser(SysUser sysUser);
    int updateUser(SysUser sysUser);
    int deleteUserById(Integer id);
    int deleteUsersByIds(@Param("ids") List<Integer> ids);

    int deleteByPrimaryKey(Long id);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

    SysUser login(@Param("phone") String phone, @Param("password") String password);


}
